import {
  presetAttributify,
  presetIcons,
  presetTypography,
  presetUno,
  transformerCompileClass,
  transformerDirectives,
  transformerVariantGroup,
} from "unocss";
import config from "./config"

export function createConfig(){
  return {
    ...config,
    presets: [
      presetUno({ dark: 'class' }),
      presetAttributify(),
      presetIcons({
        extraProperties: {
          display: "inline-block",
          "vertical-align": "middle",
        },
      }),
      presetTypography(),
    ],
    transformers:[
      transformerDirectives(),
      transformerVariantGroup(),
      transformerCompileClass(),
    ]
  };
}
